import App from '@/view/Main.vue'
//首页
export const routes =
  [
    {
      path: '/app',
      name: 'app',
      component: App,
      children: [
        {
          path: '/home',
          name: 'home',
          component: () => import('@/view/home'),
          meta: {
            title: '首页',
            breadcrumb: false
          }
        }

      ]
    },
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/view/login'),
      meta: {
        title: '登录',
        breadcrumb: false
      }
    }, {
    path: '/404',
    name: '404',
    component: () => import('@/view/errorPage/404'),
    meta: {
      title: '404',
      breadcrumb: false
    }
  },
    {
      path: '/redirect',
      component: () => import('@/view/Main'),
      children: [
        {
          path: '/redirect/:path*',
          component: () => import('@/view/redirect')
        }
      ]
    }
  ]
